#!/bin/bash

read -p "add user qiaolab"
useradd qiaolab
smbpasswd -a qiaolab

sh -c "cat ~/server-tools/scigo/smb/smb-sharefolder.txt >> /etc/samba/smb.conf"

# blkid

# read -p "edit fstab" inputtext
# vim /etc/fstab

read -p "update fstab"
# cp ~/dotlabserver/fstab /etc/fstab
sh -c "cat ~/server-tools/scigo/smb/external_drives.txt >> /etc/fstab"
vim /etc/fstab

# reboot
